#include "libMediaClient.h"
#include "MediaClientTool.h"


MediaClientTool* gClient = NULL;
LIBMEDIACLIENT_API void MediaClient_Init()
{
	if (!gClient)
	{
		gClient = new MediaClientTool();
		gClient->Init();
	}
}

LIBMEDIACLIENT_API void MediaClient_PushSet(bool bPush)
{
	if ( gClient )
	{
		gClient->PushSet(bPush);
	}
}

LIBMEDIACLIENT_API bool MediaClient_PushState()
{
	if ( gClient )
	{
		return gClient->PushState();
	}
	return false;
}

LIBMEDIACLIENT_API void MediaClient_PullSet(bool bPull)
{
	if (gClient)
	{
		gClient->PullSet(bPull);
	}
}

LIBMEDIACLIENT_API bool MediaClient_PullState()
{
	if (gClient)
	{
		return gClient->PullState();
	}
	return false;
}
